<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">

		<title>个人中心</title>

		<link href="/home/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css">
		<link href="/home/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css">
		<link href="/home/css/personal.css" rel="stylesheet" type="text/css">
		<link href="/home/css/systyle.css" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="/home/js/jquery-1.8.3.min.js"></script>
	</head>

	<body>
		<!--头 -->
		<header>
			<article>
				<div class="mt-logo">
					<!--顶部导航条 -->
					<div class="am-container header">
						<ul class="message-r">
							<div class="topMessage home">
								<div class="menu-hd"><a href="/" target="_top" class="h">商城首页</a></div>
							</div>
							<div class="topMessage my-shangcheng">
								<div class="menu-hd MyShangcheng"><a href="/person" target="_top"><i class="am-icon-user am-icon-fw"></i>个人中心</a></div>
							</div>
							<div class="topMessage mini-cart">
								<div class="menu-hd"><a id="mc-menu-hd" href="/cart" target="_top"><i class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span><strong id="J_MiniCartNum" class="h"></strong></a></div>
							</div>
							<div class="topMessage favorite">
								<div class="menu-hd"><a href="/person/collection" target="_top"><i class="am-icon-heart am-icon-fw"></i><span>收藏夹</span></a></div>
						</ul>
						</div>

						<!--悬浮搜索框-->

						<div class="nav white">
							<div class="logoBig">
								<li><img src="/home/images/logobig.png" /></li>
							</div>

							<div class="search-bar pr">
								<a name="index_none_header_sysc" href="#"></a>
								<form>
									<input id="searchInput" name="index_none_header_sysc" type="text" placeholder="搜索" autocomplete="off">
									<input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="submit">
								</form>
							</div>
						</div>

						<div class="clear"></div>
					</div>
				</div>
			</article>
		</header>
            <div class="nav-table">
					   <div class="long-title"><span class="all-goods">全部分类</span></div>
					   <div class="nav-cont">
							<ul>
								<li class="index"><a href="/">首页</a></li>
							</ul>
						</div>
			</div>
			<b class="line"></b>
		<div class="center">
			<div class="col-main">
				<div class="main-wrap">
					<div class="wrap-left">
						<div class="wrap-list">
							<div class="m-user">
								<!--个人信息 -->
								<div class="m-bg"></div>
								<div class="m-userinfo">
									<div class="m-baseinfo">
										<a href="/person/info">
											<img src="{{$userinfo['headPic']}}">
										</a>
										<em class="s-name">({{$userinfo['nickName']}})&nbsp;<span class="">{{$lev}}</span></em>
									</div>
									<div class="m-right">
										<div class="m-new">
											<a href="/person/news"><i class="am-icon-bell-o"></i>消息</a>
										</div>
										<div class="m-address">
											<a href="/person/address" class="i-trigger">我的收货地址</a>
										</div>
									</div>
								</div>

								<!--个人资产-->
								<div class="m-userproperty">
									<div class="s-bar">
										<i class="s-icon"></i>个人资产
									</div>
									<p class="m-coupon">
										<a href="/person/coupon">
											<i><img src="/home/images/coupon.png"/></i>
											<span class="m-title">优惠券</span>
											<em class="m-num">{{$coupons['count']}}</em>
										</a>
									</p>
								</div>
							</div>
							<div class="box-container-bottom"></div>

							<!--订单 -->
							<div class="m-order">
								<div class="s-bar">
									<i class="s-icon"></i>我的订单
									<a class="i-load-more-item-shadow" href="/person/order">全部订单</a>
								</div>
								<ul>
									<li><a href="/person/orderinfo"><i><img src="/home/images/pay.png"/></i><span>待付款<em class="m-num">
									@foreach($orders as $v)
										@if($v['oStatus']==0)
											{{$v['order_count']}}
										@endif
									@endforeach
									</em></span></a></li>
									<li><a href="/person/order"><i><img src="/home/images/send.png"/></i><span>待发货<em class="m-num">@foreach($orders as $v)
										@if($v['oStatus']==1)
											{{$v['order_count']}}
										@endif
									@endforeach</em></span></a></li>
									<li><a href="/person/order"><i><img src="/home/images/receive.png"/></i><span>待收货<em class="m-num">@foreach($orders as $v)
										@if($v['oStatus']==2)
											{{$v['order_count']}}
										@endif
									@endforeach</em></span></a></li>
									<li><a href="/person/order"><i><img src="/home/images/comment.png"/></i><span>待评价<em class="m-num">@foreach($orders as $v)
										@if($v['oStatus']==3)
											{{$v['order_count']}}
										@endif
									@endforeach</em></span></a></li>
									<li><a href="/person/change"><i><img src="/home/images/refund.png"/></i><span>退换货<em class="m-num">@foreach($orders as $v)
										@if($v['oStatus']==4)
											{{$v['order_count']}}
										@endif
									@endforeach</em></span></a></li>
								</ul>
							</div>
							<!--九宫格-->
							<div class="user-patternIcon">
								<div class="s-bar">
									<i class="s-icon"></i>我的常用
								</div>
								<ul>

									<a href="/cart"><li class="am-u-sm-4"><i class="am-icon-shopping-basket am-icon-md"></i><img src="/home/images/iconbig.png"/><p>购物车</p></li></a>
									<a href="/person/collection"><li class="am-u-sm-4"><i class="am-icon-heart am-icon-md"></i><img src="/home/images/iconsmall1.png"/><p>我的收藏</p></li></a>
									<a href="/"><li class="am-u-sm-4"><i class="am-icon-gift am-icon-md"></i><img src="/home/images/iconsmall0.png"/><p>为你推荐</p></li></a>
									<a href="/person/comment"><li class="am-u-sm-4"><i class="am-icon-pencil am-icon-md"></i><img src="/home/images/iconsmall3.png"/><p>好评宝贝</p></li></a>
									<a href="/person/foot"><li class="am-u-sm-4"><i class="am-icon-clock-o am-icon-md"></i><img src="/home/images/iconsmall2.png"/><p>我的足迹</p></li></a>                                                                        
								</ul>
							</div>
							<!--收藏夹 -->
							<div class="you-like">
								<div class="s-bar">我的收藏
								</div>
								<div class="s-content">
								@foreach($colls as $v)	
									<div class="s-item-wrap">
										<div class="s-item">

											<div class="s-pic">
												<a href="/detail/{{$v['id']}}" class="s-pic-link">
													<img src="{{$v['cover']}}" alt="{{$v['content']}}" class="s-pic-img s-guess-item-img">
												</a>
											</div>
											<div class="s-price-box">
												<span class="s-price"><em class="s-price-sign">¥</em><em class="s-value">{{$v['price']}}</em></span>
											</div>
											<div class="s-title">
											<a href="/details/{{$v['id']}}" title="{{$v['content']}}">{!!$v['content']!!}</a>
											</div>
											<div class="s-extra-box">
												<span class="s-comment">好评: 99.74%</span>
												<span class="s-sales">月销: 69</span>
											</div>
										</div>
									</div>	
								@endforeach							
								</div>

								<div class="s-more-btn i-load-more-item" data-screen="0" id="more"><i class="am-icon-refresh am-icon-fw"></i>更多</div>

							</div>

						</div>
					</div>
					<div class="wrap-right">

						<!-- 日历-->
						<div class="day-list " id="date">
							<div class="s-bar">
								<a class="i-history-trigger s-icon" href="#"></a>我的日历
								<a class="i-setting-trigger s-icon" href="#"></a>
							</div>
							<div class="s-care s-care-noweather">
								<div class="s-date">
									<em id="day">21</em>
									<span id="xq">星期一</span>
									<span id="year">2015.12</span>
								</div>
							</div>
						</div>
						<!--新品 -->
						<div class="new-goods">
							<div class="s-bar">
								<i class="s-icon"></i>今日新品
								<a class="i-load-more-item-shadow">15款新品</a>
							</div>
							<div class="new-goods-info">
								<a class="shop-info" href="#" target="_blank">
									<div class="face-img-panel">
										<img src="/home/images/imgsearch1.jpg" alt="">
									</div>
									<span class="new-goods-num ">4</span>
									<span class="shop-title">剥壳松子</span>
								</a>
								<a class="follow " target="_blank">关注</a>
							</div>
						</div>

						<!--热卖推荐 -->
						<div class="new-goods">
							<div class="s-bar">
								<i class="s-icon"></i>热卖推荐
							</div>
							<div class="new-goods-info">
								<a class="shop-info" href="#" target="_blank">
									<div >
										<img src="/home/images/imgsearch1.jpg" alt="">
									</div>
                                    <span class="one-hot-goods">￥9.20</span>
								</a>
							</div>
						</div>

					</div>
				</div>
				<!--底部-->
				<div class="footer">
					<div class="footer-hd">
						<p>
							<a href="#">恒望科技</a>
							<b>|</b>
							<a href="#">商城首页</a>
							<b>|</b>
							<a href="#">支付宝</a>
							<b>|</b>
							<a href="#">物流</a>
						</p>
					</div>
					<div class="footer-bd">
						<p>
							<a href="#">关于恒望</a>
							<a href="#">合作伙伴</a>
							<a href="#">联系我们</a>
							<a href="#">网站地图</a>
							<em>© 2015-2025 Hengwang.com 版权所有</em>
						</p>
					</div>
				</div>

			</div>

			<aside class="menu">
				<ul>
					<li class="person active">
						<a href="/person">个人中心</a>
					</li>
					<li class="person">
						<a href="/person">个人资料</a>
						<ul>
							<li> <a href="/person/info">个人信息</a></li>
							<li> <a href="/person/safe">安全设置</a></li>
							<li> <a href="/person/address">收货地址</a></li>
						</ul>
					</li>
					<li class="person">
						<a href="#">我的交易</a>
						<ul>
							<li><a href="/person/order">订单管理</a></li>
							
							<li> <a href="/person/change">退款售后</a></li>

						</ul>
					</li>
					<li class="person">
						<a href="#">我的资产</a>
						<ul>
							<li> <a href="/person/coupon">优惠券 </a></li>
							<li> <a href="/person/bonus">红包</a></li>
							<li> <a href="/person/bill">账单明细</a></li>
						</ul>
					</li>

					<li class="person">
						<a href="#">我的小窝</a>
						<ul>
							<li> <a href="/person/collection">收藏</a></li>
							<li> <a href="/person/foot">足迹</a></li>
							<li> <a href="/person/comment">评价</a></li>
							<li> <a href="/person/news">消息</a></li>
						</ul>
					</li>

				</ul>

			</aside>
		</div>
		<!--引导 -->
		<div class="navCir">
			<li><a href="/home/home/home.html"><i class="am-icon-home "></i>首页</a></li>
			<li><a href="/home/home/sort.html"><i class="am-icon-list"></i>分类</a></li>
			<li><a href="/home/home/shopcart.html"><i class="am-icon-shopping-basket"></i>购物车</a></li>	
			<li class="active"><a href="index.html"><i class="am-icon-user"></i>我的</a></li>					
		</div>
		<script>
			var num = 5;
			$('#more').click(function(){
				$.get('/person/moreAjax',{'uid':{{$user['id']}},'num':num},function(data){
					num = num + 5;
					for(var i=0;i<=data.length;i++){
						var div = $('.s-item-wrap').eq(0).clone(true);
					 	div.find('.s-item').find('.s-pic').find('a').attr('href','/details/'+data[i].id);
					 	div.find('.s-item').find('.s-pic').find('a').find('img').attr('src',data[i].cover);
					 	div.find('.s-item').find('.s-pic').find('a').find('img').attr('alt',data[i].content);
					 	div.find('.s-item').find('.s-pic').find('a').find('img').attr('title',data[i].content);
					 	div.find('.s-item').find('.s-price-box').find('.s-price').find('.s-value').html(data[i].price);
					 	div.find('.s-item').find('.s-title').find('a').attr('href','/details/'+data[i].id);
					 	div.find('.s-item').find('.s-title').find('a').attr('title',data[i].content);
					 	div.find('.s-item').find('.s-title').find('a').html(data[i].content);
					 	$('.s-content').append(div);

					}
				},'json');
			});
			$(document).ready(function(){
				var d = new Date();
				var year = d.getFullYear();
				var month = d.getMonth()+1;
				var day = d.getDate();
				var xingqi = d.getDay();
				var xq = '';
				switch(xingqi){
					case 0:
						xq = '日';
						break;
					case 1:
						xq = '一';
						break;
					case 2:
						xq = '二';
						break;
					case 3:
						xq = '三';
						break;
					case 4:
						xq = '四';
						break;
					case 5:
						xq = '五';
						break;
					case 6:
						xq = '六';
						break;
				}
				$('#day').html(day);
				$('#xq').html('星期'+xq);
				$('#year').html(year+'-'+month);
			});
		</script>
	</body>
	
</html>